package com.zhangdi.mserver.searchcli;

import org.elasticsearch.common.lucene.search.function.CombineFunction;

public class MFunctionScore extends QueryOptions {
    private MSearchRequest funRequest;
    private String script;
    private CombineFunction mode = CombineFunction.REPLACE;

    public MSearchRequest getFunRequest() {
        return funRequest;
    }

    public void setFunRequest(MSearchRequest funRequest) {
        this.funRequest = funRequest;
    }

    public String getScript() {
        return script;
    }

    public void setScript(String script) {
        this.script = script;
    }

    public static MFunctionScore create(){
        return new MFunctionScore();
    }

    public CombineFunction getMode() {
        return mode;
    }

    public void setMode(CombineFunction mode) {
        this.mode = mode;
    }
}
